package com.qijian.flowable.domain;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 刀具使用实体
 */
@Data
public class FlowDto {

    private String flowTypeDesc;

    private String eqpNumber;
    private String code;

    private String number;

    private String name;

    private String spec;

    private String brand;

    private BigDecimal quantity;

    private String unit;

    private String statusDesc;

    private String type;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long areaId;
    @JsonSerialize(using= ToStringSerializer.class)
    private Long equipmentLedgerId;

    private String factoryArea;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long factoryAreaId;


    private List<String> projects;

    private String eqpName;

    private String status;

    private String location;

    private String storage;

    private BigDecimal oldQuantity;
    @ApiModelProperty(value = "借入人Id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long borrowerUserId;

    @ApiModelProperty(value = "借入人名称")
    private String borrowerUserName;

//    @JsonSerialize(using= ToStringSerializer.class)
//    @ApiModelProperty(value = "借入设备Id")
//    private Long borrowerEquipmentLedgerId;
//
//    @ApiModelProperty(value = "借入设备编号")
//    private String borrowerEqpNumber;
//
//    @ApiModelProperty(value = "借入设备名称")
//    private String borrowerEqpName;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "借出设备Id")
    private Long lendEquipmentLedgerId;

    @ApiModelProperty(value = "借出设备编号")
    private String lendEqpNumber;

    @ApiModelProperty(value = "借出设备名称")
    private String lendEqpName;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "在用刀具Id")
    private Long knifeUseId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "在用刀具新的Id")
    private Long knifeUseIdNew;

    private String shortName;


    private String borrowerFactoryArea;

}
